package pojo;

import java.util.List;

public class PageBean<T> {
	//总条数
	public int total;
	//页面大小
	public int pageSize;
	//总页数
	public int totalPage;
	//当前页码
	public int currentPage;
	//数据集
	List<T> list;
	public PageBean(int total, int pageSize, int totalPage, int currentPage, List<T> list) {
		super();
		this.total = total;
		this.pageSize = pageSize;
		this.totalPage = totalPage;
		this.currentPage = currentPage;
		this.list = list;
	}
	public PageBean() {
		super();
	}
	public int getTotal() {
		return total;
	}
	public void setTotal(int total) {
		this.total = total;
	}
	public int getPageSize() {
		return pageSize;
	}
	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}
	public int getTotalPage() {
		return totalPage;
	}
	public void setTotalPage(int totalPage) {
		this.totalPage = totalPage;
	}
	public int getCurrentPage() {
		return currentPage;
	}
	public void setCurrentPage(int currentPage) {
		this.currentPage = currentPage;
	}
	public List<T> getList() {
		return list;
	}
	public void setList(List<T> list) {
		this.list = list;
	}
	
	

}
